<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>

<link rel="stylesheet" href="${ctx }/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="${ctx }/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="${ctx }/kindeditor/lang/zh_CN.js"></script>

<script>
					KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content"]', {
				cssPath : '${ctx}/kindeditor/plugins/code/prettify.css',
				uploadJson :  '${ctx}/kindeditor/jsp/upload_json.jsp',  
				fileManagerJson : '${ctx}/kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['article'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['article'].submit();
					});
				}
			});
			prettyPrint();
		});
			function check(){
				if(editor.isEmpty()){
					alert("请输入内容！");
					return false;
				}
				else true;
			}
		</script>


  </head>
  
  <body>
  <s:if test="hasActionMessages()">      
         <s:iterator value="actionMessages">      
             <script language="JavaScript">      
                 alert("<s:property escape="false"/>");     
             </script>      
         </s:iterator>      
      </s:if> 
	<div class="article" style="margin-top:-20px;">
		<form action="school-intr-admin!save.action" method="post" name="article" onsubmit="return check()">&nbsp; 
			<s:if test="id!=null"><input type="hidden" name="entity.id" value="${id }"/></s:if>
			<input type="hidden" name="entity.type" value="${type }"/>
			<textarea name="content" style="width:100%;height:450px;visibility:hidden;">${content }</textarea>
			<input type="submit" class="button" style="margin-left:92%; width:80px;" value="提交" /> 
		</form>
	</div>
  </body>
</html>
